import { createSSRApp  } from "vue";
import App from "./App.vue";
import uView from "vk-uview-ui";
import { store } from '@/store'
// import * as components from "./pages/components"
console.log(uView)
export function createApp() {
    const app  = createSSRApp(App)
    // 使用 uView UI
    app.use(uView)
    app.use(store)
    // Object.keys(components).forEach(key => {
    //   console.log(components, key)
    //   app.component(key, components[key])
    // })
    
    return { app }
  }